import { useReducer } from 'react';

// 类似于class中的setState
export const useSet = (initState: any) => {
  return useReducer((state: any, newState: any) => ({ ...state, ...newState }), initState);
};
